package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文章管理对象 article
 * 
 * @author ruoyi
 * @date 2024-09-01
 */
public class Article extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 用户头像 */
    @Excel(name = "用户头像")
    private String userPhoto;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String title;

    /** 短标题 */
    @Excel(name = "短标题")
    private String shortTitle;

    /** 文章图片 */
    @Excel(name = "文章图片")
    private String articlePhoto;

    /** 类型id */
    @Excel(name = "类型id")
    private Long categoryId;

    /** 是否收费：1-不收费，2-收费 */
    @Excel(name = "是否收费：1-不收费，2-收费")
    private Integer isCharge;

    /** 是否公开：1-公开，2-不公开 */
    @Excel(name = "是否公开：1-公开，2-不公开")
    private Integer isPublic;

    /** 来源：1-转载，2-原创 */
    @Excel(name = "来源：1-转载，2-原创")
    private Integer source;

    /** 原文链接 */
    @Excel(name = "原文链接")
    private String sourceUrl;

    /** 访问计数 */
    @Excel(name = "访问计数")
    private Long count;

    /** 点赞总数 */
    @Excel(name = "点赞总数")
    private Long likesNum;

    /** 收藏总数 */
    @Excel(name = "收藏总数")
    private Long favoritesNum;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createPerson;

    /** 修改人 */
    @Excel(name = "修改人")
    private String updatePerson;

    @Excel(name = "是否审批")
    private Integer isAudit;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }

    public Long getUserId()
    {
        return userId;
    }
    public void setUsername(String username)
    {
        this.username = username;
    }

    public String getUsername()
    {
        return username;
    }
    public void setUserPhoto(String userPhoto)
    {
        this.userPhoto = userPhoto;
    }

    public String getUserPhoto()
    {
        return userPhoto;
    }
    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle()
    {
        return title;
    }
    public void setShortTitle(String shortTitle)
    {
        this.shortTitle = shortTitle;
    }

    public String getShortTitle()
    {
        return shortTitle;
    }
    public void setArticlePhoto(String articlePhoto)
    {
        this.articlePhoto = articlePhoto;
    }

    public String getArticlePhoto()
    {
        return articlePhoto;
    }
    public void setCategoryId(Long categoryId)
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId()
    {
        return categoryId;
    }
    public void setIsCharge(Integer isCharge)
    {
        this.isCharge = isCharge;
    }

    public Integer getIsCharge()
    {
        return isCharge;
    }
    public void setIsPublic(Integer isPublic)
    {
        this.isPublic = isPublic;
    }

    public Integer getIsPublic()
    {
        return isPublic;
    }
    public void setSource(Integer source)
    {
        this.source = source;
    }

    public Integer getSource()
    {
        return source;
    }
    public void setSourceUrl(String sourceUrl)
    {
        this.sourceUrl = sourceUrl;
    }

    public String getSourceUrl()
    {
        return sourceUrl;
    }
    public void setCount(Long count)
    {
        this.count = count;
    }

    public Long getCount()
    {
        return count;
    }
    public void setLikesNum(Long likesNum)
    {
        this.likesNum = likesNum;
    }

    public Long getLikesNum()
    {
        return likesNum;
    }
    public void setFavoritesNum(Long favoritesNum)
    {
        this.favoritesNum = favoritesNum;
    }

    public Long getFavoritesNum()
    {
        return favoritesNum;
    }
    public void setCreatePerson(String createPerson)
    {
        this.createPerson = createPerson;
    }

    public String getCreatePerson()
    {
        return createPerson;
    }
    public void setUpdatePerson(String updatePerson)
    {
        this.updatePerson = updatePerson;
    }

    public String getUpdatePerson()
    {
        return updatePerson;
    }

    public Integer getIsAudit() {
        return isAudit;
    }
    public void setIsAudit(Integer isAudit) {
        this.isAudit = isAudit;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("username", getUsername())
            .append("userPhoto", getUserPhoto())
            .append("title", getTitle())
            .append("shortTitle", getShortTitle())
            .append("articlePhoto", getArticlePhoto())
            .append("categoryId", getCategoryId())
            .append("isCharge", getIsCharge())
            .append("isPublic", getIsPublic())
            .append("source", getSource())
            .append("sourceUrl", getSourceUrl())
            .append("count", getCount())
            .append("likesNum", getLikesNum())
            .append("favoritesNum", getFavoritesNum())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createPerson", getCreatePerson())
            .append("updatePerson", getUpdatePerson())
            .append("isAudit",getIsAudit())
            .toString();
    }
}
